//
//  YMHomeHealthMoreItemCell.m
//  YMMedical
//
//  Created by y s on 2023/7/19.
//

#import "YMHomeHealthMoreItemCell.h"
#import "YMHomeHealthItemCardView.h"


@interface YMHomeHealthMoreItemCell ()

@property (nonatomic, strong) YMHomeHealthItemCardView *vCard;

@end

@implementation YMHomeHealthMoreItemCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self setUI];
    }
    return self;
}

#pragma mark -- UI
- (void)setUI{
    self.contentView.backgroundColor = [UIColor clearColor];
    self.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:self.vCard];
    [self.vCard mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(0);
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.bottom.mas_equalTo(0);
    }];
}

- (void)setDict:(NSDictionary *)dict{
    _dict = dict;
    self.vCard.dict = dict;
}
- (void)setShowSelect:(BOOL)showSelect{
    _showSelect = showSelect;
    self.vCard.showSelect = showSelect;
}


#pragma mark -- setter and getter
- (YMHomeHealthItemCardView *)vCard{
    if (_vCard == nil){
        _vCard = [[YMHomeHealthItemCardView alloc] init];
    }
    return _vCard;
}

@end
